package com.foo;

public class CarFactory {
   //非静态方法
   public Component createCar(){
       Component car = new Component();

       return car;
   }
   
   //静态方法
   public static  Component createStaticCar(){
       Component car = new Component();
       return car;
   }
}